<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="head_banner">
</div>
<div id="head_nav">
	<ul id="nav_memu">
		<!-- 
		
	     -->
		<li class="mainlevel">
			<a href="home.action" class="main_level_menu">首&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;页</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=1" class="main_level_menu">最新动态</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=4" class="main_level_menu">行业资讯</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=5" class="main_level_menu">企业风采</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=6" class="main_level_menu">技术创新</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=7" class="main_level_menu">质量检测</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=8" class="main_level_menu">技术合作</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=9" class="main_level_menu">设备共享</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=10" class="main_level_menu">招商引资</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=11" class="main_level_menu">技术培训</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=12" class="main_level_menu">产品展示</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=13" class="main_level_menu">信息发布</a>
	    </li>
		<li class="mainlevel">
			<a href="article/viewArticles.action?cid=14" class="main_level_menu">求职招聘</a>
	    </li>
		<li class="mainlevel">
			<a href="organization/viewAllOrganizations.action" class="main_level_menu">矿产企业</a>
	    </li>
		<li class="mainlevel">
			<a href="aboutUs.jsp" class="main_level_menu">平台简介</a>
	    </li>
		<li class="mainlevel">
			<a href="manage/manageHome.action" class="main_level_menu">后台管理</a>
	    </li>
	    <li class="mainlevel">
			<span id="head_nav_date">
			</span>
			<s:if test="#session.loginUser == null">
				<span><a href="toRegister.action" style="display:inline;">注册</a></span>
				<span><a href="login.jsp" style="display:inline;margin-left:20px;">登录</a></span>
			</s:if>
			<s:else>
				<span style="display:inline;"><s:property value="#session.loginUser.name"/></span>	
				<span><a href="user/logout.action" style="display:inline;">退出</a></span>
			</s:else>
		    <script type="text/javascript"> 
				function ShowTime() { 
				    var month="";
				    var ampm="";
				    var ampmhour="";
				    var myweekday="";
				    var year="";
				    mydate=new Date();
				    myweekday=mydate.getDay();
				    mymonth=mydate.getMonth()+1;
				    myday= mydate.getDate();
				    myyear= mydate.getYear();
				    year=(myyear > 200) ? myyear : 1900 + myyear;
				    if(myweekday == 0)
				    weekday=" 星期日 ";
				    else if(myweekday == 1)
				    weekday=" 星期一 ";
				    else if(myweekday == 2)
				    weekday=" 星期二 ";
				    else if(myweekday == 3)
				    weekday=" 星期三 ";
				    else if(myweekday == 4)
				    weekday=" 星期四 ";
				    else if(myweekday == 5)
				    weekday=" 星期五 ";
				    else if(myweekday == 6)
				    weekday=" 星期六 ";
				    var temp=""+year+"年"+mymonth+"月"+myday+"日 "+weekday;
					//var time = new Date(); 
					//var temp = time.toLocaleString(); 
					document.getElementById("head_nav_date").innerText = temp; 
					//setTimeout(ShowTime, 60000); 
				} 
				onload = ShowTime; 
			</script>
	    </li>
	</ul>
</div>